
from pydantic import Field
from pydantic_settings import BaseSettings, SettingsConfigDict
from pathlib import Path

class Settings(BaseSettings):

    model_config = SettingsConfigDict(
        env_file=Path(__file__).parent.parent/ '.env',
        env_file_encoding="utf-8"
    )
    VERSION: str = '1.0'
    DEBUG: bool = True

    # 大模型配置
    LLM_URI : str = Field(default='', description='大模型URL')
    LLM_MODEL: str = Field(default='', description='大模型名称')
    LLM_API_KEY: str = Field(default='', description='API-KEY')

    # VL模型
    VL_URI: str = Field(default='', description='VL大模型URL')
    VL_MODEL: str = Field(default='', description='VL大模型名称')
    VL_API_KEY: str = Field(default='', description='API-KEY')

    # VLM地址
    VLM_SERVER_URL: str = Field(default='', description='MinerU')
